﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarInfor.UI
{
    public class MessageHelper
    {
        public static void ShowInfo(string messge)
        {
            MessageBox.Show(messge, "信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
        public static void ShowError(string message)
        {
            MessageBox.Show(message, "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
        }
        public static void ShowFail(string message)
        {
            MessageBox.Show(message, "操作失败", MessageBoxButtons.OK, MessageBoxIcon.Stop);
        }
        public static DialogResult ShowYesNoChoice(string message)
        {
            return MessageBox.Show(message, "请选择", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
        }
        public static DialogResult ShowOKCancelChoice(string message)
        {
            return MessageBox.Show(message, "请选择", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
        }
        public static DialogResult ShowYesNoCancelChoice(string message)
        {
            return MessageBox.Show(message, "请选择", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
        }
    }
}
